<script setup lang="ts">
import { ref } from 'vue'
import TabBar from './Layout/Menu.vue'
import HomePage from './views/HomePage.vue'
import RegisterPage from './views/RegisterPage.vue'
import MessagePage from './views/MessagePage.vue'
import ProfilePage from './views/ProfilePage.vue'
import RegisterUser from './views/RegisterUser.vue'
const currentTab = ref('home')
</script>

<template>
  <div class="app-container">
    <!-- 主内容区 -->
    <main class="main-content">
          <router-view />
    </main>

    <!-- 底部导航 -->
    <TabBar v-model="currentTab" />
  </div>
</template>

<style>
.app-container {
  min-height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding-bottom: 60px; /* 为底部导航留出空间 */
}

/* 全局样式 */
:root {
  --primary-color: #4CAF50;
  --text-color: #333;
  --font-size-large: 18px;
  --font-size-normal: 16px;
}

/* 适合老年人的全局样式 */
body {
  font-size: var(--font-size-normal);
  color: var(--text-color);
  line-height: 1.6;
}

button {
  font-size: var(--font-size-normal);
  padding: 12px 20px;
  border-radius: 8px;
}

input, select {
  font-size: var(--font-size-normal);
  padding: 12px;
  border-radius: 8px;
}
</style>
